package com.flash.BusinessParameters.service.impl;

import com.flash.BusinessParameters.entity.Plate;
import com.flash.BusinessParameters.mapper.PlateMapper;
import com.flash.BusinessParameters.service.PlateService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PlateServiceImpl implements PlateService {
    @Resource
    PlateMapper plateMapper;


    @Override
    public List<Plate> selectPlate() {
        return plateMapper.selectPlate();
    }

    @Override
    public int deletePlate(String plateId) {
        return plateMapper.deletePlate(plateId);
    }

    @Override
    public int insertPlate(Plate plate) {
        return plateMapper.insertPlate(plate);
    }

    @Override
    public int updatePlate(Plate plate) {
        return plateMapper.updatePlate(plate);
    }

    @Override
    public int selectCountPlate() {
        return plateMapper.selectCountPlate();
    }

    @Override
    public int insertFatherPlate(Plate plate) {
        return plateMapper.insertFatherPlate(plate);
    }


}
